diff options
Diffstat (limited to 'tests/ui/coherence/impl-foreign[foreign]-for-local.rs')
| -rw-r--r-- | tests/ui/coherence/impl-foreign[foreign]-for-local.rs | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/coherence/impl-foreign[foreign]-for-local.rs b/tests/ui/coherence/impl-foreign[foreign]-for-local.rs new file mode 100644 index 00000000000..bc6595bb340 --- /dev/null +++ b/tests/ui/coherence/impl-foreign[foreign]-for-local.rs @@ -0,0 +1,14 @@ +// compile-flags:--crate-name=test +// aux-build:coherence_lib.rs +// check-pass + +extern crate coherence_lib as lib; +use lib::*; +use std::rc::Rc; + +struct Local; + +impl Remote1<u32> for Local { +} + +fn main() {}  | 
